import java.util.*;

public class LinkedListDemo {
	public static void main(String argv[]){
		System.out.println("Clasa LinkedList in Java 1.2");
		LinkedList l = new LinkedList();
		l.add(new Object());
		l.add("Hello");
		
		System.out.println("Lista cu toate elementele");
		ListIterator li = l.listIterator(0);
		while(li.hasNext())
			System.out.println(li.next());
		if(l.indexOf("hello") < 0)
			System.err.println("Lookup nu merge");
		else
			System.err.println("mergeeee");
	}

}
